package com.web.base.wechat.message;

import com.blue.integration.serve.Bucket;
import com.blue.integration.serve.IdentityCard;
import com.web.base.valid.IdentityCardValid;
import com.web.base.valid.PlateValid;
import com.web.base.valid.VehicleLicenseValid;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class WechatMediaRequest implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	@NotNull(groups = { IdentityCardValid.class, VehicleLicenseValid.class, PlateValid.class }, message = "用户ID不能为空")
	private Integer userId;
	@NotBlank(groups = { IdentityCardValid.class, VehicleLicenseValid.class, PlateValid.class }, message = "微信临时素材 MediaId 不能为空")
	private String mediaId;
	@NotNull(groups = { IdentityCardValid.class }, message = "身份证正反面不能为空")
	private IdentityCard.Side side;
	private Bucket bucket;
	@NotBlank(groups = { IdentityCardValid.class, VehicleLicenseValid.class, PlateValid.class }, message = "微信代码不能为空")
	private String wechatCode;

	public WechatMediaRequest()
	{
	}

	public Integer getUserId()
	{
		return userId;
	}

	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}

	public String getMediaId()
	{
		return mediaId;
	}

	public void setMediaId(String mediaId)
	{
		this.mediaId = mediaId;
	}

	public IdentityCard.Side getSide()
	{
		return side;
	}

	public void setSide(IdentityCard.Side side)
	{
		this.side = side;
	}

	public Bucket getBucket()
	{
		return bucket;
	}

	public void setBucket(Bucket bucket)
	{
		this.bucket = bucket;
	}

	public String getWechatCode()
	{
		return wechatCode;
	}

	public void setWechatCode(String wechatCode)
	{
		this.wechatCode = wechatCode;
	}
}
